﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace ClubInfrostructure
{
    class PlayerProfile
    {
            private int _playerID;
            public int PlayerID
            {
                get { return _playerID; }
                set { _playerID = value; }
            }
            private string _playerFIO;
            private int _clubID;
            private decimal _salary;
            private string _nationalyty;
            private DateTime _Birsday;
            private string _position;
            private static int playersAmount;
       
 
            public PlayerProfile ()
            {
                this._playerID = 0;
                this._playerFIO  = null;
                this._clubID  = 0;
                this._salary  = 0;
                this._nationalyty  = null;
                this._Birsday  = Convert.ToDateTime("01/01/0001");
                this._position   = null;
  
            }
            static PlayerProfile()
            {
                playersAmount = 0;
            }

            public  void RegisterdPlayerProfile(string FIO,string nationalyty, DateTime birsday, string position)
            {
                _playerID = playersAmount++;
                _playerFIO = FIO;
                _nationalyty = nationalyty;
                _Birsday = Convert.ToDateTime(birsday);
                _position = position ;
            }

            public void ChangeClub(int playerID, int clubID, decimal salary)
            { 
                _playerID = playerID ;
                _clubID = clubID ;
                _salary = salary ;
            }

            public void ChangeSalary(int playerID, decimal salary)
            {
                _playerID = playerID;
                _salary = salary;
            }

            public void ChangePosition(int playerID, string position)
            {
                _playerID = playerID;
                _position = position;

            }

           
            public string PlayerFIO
            {
                get { return _playerFIO; }
                set { _playerFIO = value; }
            }
            public int PlayerID
            {
                get { return _playerID; }
                set { _playerID = value; }
            }
            public int PlayerID
            {
                get { return _playerID; }
                set { _playerID = value; }
            }
            public int PlayerID
            {
                get { return _playerID; }
                set { _playerID = value; }
            }
        }
}
